package com.lei.design.strategy;

/**
 * @Author LeiXiaoLei
 * @Date 2022/5/12 16:53
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {
        System.out.println("=================================");
        DecoyDuck decoyDuck = new DecoyDuck();
        decoyDuck.display();
        decoyDuck.performFly();
        decoyDuck.performQuack();
        decoyDuck.performSwim();
        System.out.println("=================================");
        MallardDuck mallardDuck = new MallardDuck();
        mallardDuck.display();
        mallardDuck.performFly();
        mallardDuck.performQuack();
        mallardDuck.performSwim();
        System.out.println("=================================");
        RedheadDuck redheadDuck = new RedheadDuck();
        redheadDuck.display();
        redheadDuck.performFly();
        redheadDuck.performQuack();
        redheadDuck.performSwim();
        System.out.println("=================================");
        RubberDuck rubberDuck = new RubberDuck();
        rubberDuck.display();
        rubberDuck.performFly();
        rubberDuck.performQuack();
        rubberDuck.performSwim();
        System.out.println("=================================");
    }
}
